package action_行为型.observer_pattern_观察者模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/09/16:47
 * @Description:
 */
public class ObserverPatternDemo {
	public static void main(String[] args) {
		Subject subject = new Subject();

		ObServer aObServer = new AObServer(subject);
		ObServer bObServer = new BObServer(subject);
		ObServer cObServer = new CObServer(subject);

		subject.setState(1);

	}
}
